<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
// --------------------------------------------------------------------

if (!function_exists('get_ccu_status')) {

    function get_ccu_status($ccu = 0) {
        switch ($ccu) {
            case $ccu > 600:
                return 10;
                break;            
            case $ccu > 400:
                return 9;
                break;
            case $ccu > 300:
                return 8;
                break;            
            case $ccu > 165:
                return 7;
                break;
            case $ccu > 150:
                return 6;
                break;
            case $ccu > 100:
                return 5;
                break;            
            case $ccu > 85:
                return 4;
                break;
            case $ccu > 70:
                return 3;
                break;
            case $ccu > 50:
                return 2;
                break;            
            default:
                return 1;
                break;
        }
    }

}